#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#define N 6
int main()
{
	int s1, s2, ave, i;
	int r0, r1, r2, r3, r4;
	r0 = r1 = r2 = r3 = r4 = 0;
	for (i = 1; i <= N; i++)
	{
		printf("Data:");
		scanf("%d,%d", &s1, &s2);
		ave = (s1 + s2) / 2;
		if (ave >= 90) r0++;
		else if (ave >= 80) r1++;
		else if (ave >= 70) r2++;
		else if (ave >= 60) r3++;
		else r4++;
	}
	printf("excellent:%d\n", r0);
	printf("all tight:%d\n", r1);
	printf("midding:%d\n", r2);
	printf("pass:%d\n", r3);
	printf("fail:%d\n", r4);
	return 0;
}